package com.zhl.media.commonres.base;

import com.jess.arms.base.BaseFragment;
import com.jess.arms.mvp.IPresenter;
import com.zhl.media.commonres.view.LoadingDialog;

public abstract class AppFragment<P extends IPresenter> extends BaseFragment<P> {

    LoadingDialog dialog;

    public void showDiglog(String msg){
        dialog = new LoadingDialog.Builder(getActivity()).setMessage(msg).setCancelable(false).setCancelOutside(false).create();
        dialog.show();
    }

    public void showDiglog(){
        dialog = new LoadingDialog.Builder(getActivity()).setCancelable(false).setCancelOutside(false).create();
        dialog.show();
    }

    public void hideDiglog(){
        dialog.dismiss();
    }
}
